/*
 * Copyright (C) 2008,2009,2010,2011  Paulo Cesar Pereira de Andrade.
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * Authors:
 *	Paulo Cesar Pereira de Andrade
 */

#ifndef _eerror_h
#define _eerror_h

#include "edefs.h"

/*
 * Prototypes
 */
extern void
eerror(const char *format, ...)
    noreturn printf_format(1, 2);

extern void
eabort(eint8_t *code, const char *string) noreturn;

extern void
eread_error(eobject_t list, const char *format, ...)
    noreturn printf_format(2, 3);

extern void
eparse_error(eobject_t list, const char *format, ...)
    noreturn printf_format(2, 3);

extern void
enote_error(east_node_t *note, const char *format, ...)
    noreturn printf_format(2, 3);

extern void
ewarn(const char *format, ...) printf_format(1, 2);

extern void
eread_warn(eobject_t list, const char *format, ...)
    printf_format(2, 3);

extern void
eparse_warn(eobject_t list, const char *format, ...)
    printf_format(2, 3);

extern void
enote_warn(east_node_t *node, const char *format, ...)
    printf_format(2, 3);

#endif /* eerror_h */
